package com.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * 文章
 * @author MingCha Yang
 *
 */
public class Article implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Integer articleId;// 文章Id
	private Integer articleUserId;// 创建文章的用户
	private String articleTitle;// 文章标题
	private String articleContent;// 文章内容
	private Integer articleViewCount;// 浏览次数
	private Integer articleCommentCount; // 回复次数
	private Integer articleLikeCount; // 喜欢次数
	private Integer articleIsComment; // 是否回复
	private Integer articleStatus; // 状态
	private Integer articleOrder;// 排序
	private Date articleUpdateTime; // 更新时间
	private Date articleCreateTime;// 创建时间
	private String articleSummary;// 言章概要
	private User user;// 用户
    private List<Category> categorys;//一篇文章对应两个分类
    private List<Tag> tags;//一篇文章对应多个标签
    
    
    


	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Integer getArticleId() {
		return articleId;
	}

	public void setArticleId(Integer articleId) {
		this.articleId = articleId;
	}

	public Integer getArticleUserId() {
		return articleUserId;
	}

	public void setArticleUserId(Integer articleUserId) {
		this.articleUserId = articleUserId;
	}

	public String getArticleTitle() {
		return articleTitle;
	}

	public void setArticleTitle(String articleTitle) {
		this.articleTitle = articleTitle;
	}

	public String getArticleContent() {
		return articleContent;
	}

	public void setArticleContent(String articleContent) {
		this.articleContent = articleContent;
	}

	public Integer getArticleViewCount() {
		return articleViewCount;
	}

	public void setArticleViewCount(Integer articleViewCount) {
		this.articleViewCount = articleViewCount;
	}

	public Integer getArticleCommentCount() {
		return articleCommentCount;
	}

	public void setArticleCommentCount(Integer articleCommentCount) {
		this.articleCommentCount = articleCommentCount;
	}

	public Integer getArticleLikeCount() {
		return articleLikeCount;
	}

	public void setArticleLikeCount(Integer articleLikeCount) {
		this.articleLikeCount = articleLikeCount;
	}

	public Integer getArticleIsComment() {
		return articleIsComment;
	}

	public void setArticleIsComment(Integer articleIsComment) {
		this.articleIsComment = articleIsComment;
	}

	public Integer getArticleStatus() {
		return articleStatus;
	}

	public void setArticleStatus(Integer articleStatus) {
		this.articleStatus = articleStatus;
	}

	public Integer getArticleOrder() {
		return articleOrder;
	}

	public void setArticleOrder(Integer articleOrder) {
		this.articleOrder = articleOrder;
	}

	public Date getArticleUpdateTime() {
		return articleUpdateTime;
	}

	public void setArticleUpdateTime(Date articleUpdateTime) {
		this.articleUpdateTime = articleUpdateTime;
	}

	public Date getArticleCreateTime() {
		return articleCreateTime;
	}

	public void setArticleCreateTime(Date articleCreateTime) {
		this.articleCreateTime = articleCreateTime;
	}

	public String getArticleSummary() {
		return articleSummary;
	}

	public void setArticleSummary(String articleSummary) {
		this.articleSummary = articleSummary;
	}
	public List<Category> getCategorys() {
		return categorys;
	}

	public void setCategorys(List<Category> categorys) {
		this.categorys = categorys;
	}
	public List<Tag> getTags() {
		return tags;
	}

	public void setTags(List<Tag> tags) {
		this.tags = tags;
	}
	@Override
	public String toString() {
		return "Article [articleId=" + articleId + ", articleUserId=" + articleUserId + ", articleTitle=" + articleTitle
				+ ", articleContent=" + articleContent + ", articleViewCount=" + articleViewCount
				+ ", articleCommentCount=" + articleCommentCount + ", articleLikeCount=" + articleLikeCount
				+ ", articleIsComment=" + articleIsComment + ", articleStatus=" + articleStatus + ", articleOrder="
				+ articleOrder + ", articleUpdateTime=" + articleUpdateTime + ", articleCreateTime=" + articleCreateTime
				+ ", articleSummary=" + articleSummary + "]";
	}

	

}
